from django.urls import path
from . import views

app_name = "login"
urlpatterns = [
    # 增加学科
    path("api_add_subject", views.api_add_subject, name="api_add_subject"),
    # 修改学科
    path("api_change_subject", views.api_change_subject, name="api_change_subject"),
    # 删除学科
    path("api_del_subject/", views.api_del_subject, name="api_del_subject"),
    # 查找学科
    path("api_find_subject/", views.api_find_subject, name="api_find_subject"),
    # 添加科目
    path("api_add_course/", views.api_add_course, name="api_add_course"),
    # 修改科目
    path("api_change_course/", views.api_change_course, name="api_change_course"),
    # 修改科目所在的学科
    path("api_change_course_sub/", views.api_change_course_sub, name="api_change_course_sub"),
    # 删除科目
    path("api_del_course/", views.api_del_course, name="api_del_course"),
    # 按学科查找
    path("api_find_course/", views.api_find_course, name="api_find_course"),
    # 按科目名查找
    path("api_find_course_name/", views.api_find_course_name, name="api_find_course_name"),
    # 添加班级
    path("api_add_grade/", views.api_add_grade, name="api_add_grade"),
    # 修改班级状态
    path("api_change_grade/", views.api_change_grade, name="api_change_grade"),
    # 修改班级对应的科目
    path("api_change_grade_course/", views.api_change_grade_course, name="api_change_grade_course"),
    # 删除班级
    path("api_del_grade/", views.api_del_grade, name="api_del_grade"),
    # 按科目查找班级
    path("api_find_grade/", views.api_find_grade, name="api_find_grade"),
    # 添加职务
    path("api_add_duty/", views.api_add_duty, name="api_add_duty"),
    # 修改职务状态
    path("api_change_duty/", views.api_change_duty, name="api_change_duty"),
    # 删除职务
    path("api_del_duty/", views.api_del_duty, name="api_del_duty"),
    # 查找职务
    path("api_find_duty/", views.api_find_duty, name="api_find_duty"),
    # 添加用户
    path("api_add_user/", views.api_add_user, name="api_add_user"),
    # 修改用户名
    path("api_change_user_name/", views.api_change_user_name, name="api_change_user_name"),
    # 修改用户的职务
    path("api_change_user_duty/", views.api_change_user_duty, name="api_change_user_duty"),
    # 修改用户的手机号
    path("api_change_user_phone/", views.api_change_user_phone, name="api_change_user_phone"),
    # 修改用户的密码
    path("api_change_user_pswd/", views.api_change_user_pswd, name="api_change_user_pswd"),
    # 修改用户的状态
    path("api_change_user_status/", views.api_change_user_status, name="api_change_user_status"),
    # 修改用户的性别
    path("api_change_user_sex/", views.api_change_user_sex, name="api_change_user_sex"),
    # 修改用户的身份证号
    path("api_change_user_id/", views.api_change_user_id, name="api_change_user_id"),
    # 登陆
    path("api_login/", views.api_login, name="api_login"),
    ]
